            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <%= return_post_path(@post)%>
                </ul>
            </div>
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » 编辑帖子
            </div>
            <% end -%>
            <div class="box">
                <% if @post.class == CommonPost -%>
                    <% form_tag common_post_path(@post.community.district, @post.community, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %>  或者 <%= post_path(@post, '取消') %>
                    <% end -%>
                <% end -%>
                <% if @post.class == GroupPost -%>
                    <% form_tag group_post_path(@post.group, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %>  或者 <%= post_path(@post, '取消') %>
                    <% end -%>
                <% end -%>
                <% if @post.class == SitePost -%>
                    <% form_tag site_post_path(@post.site, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %> 或者 <%= post_path(@post, '取消') %>
                    <% end -%>
                <% end -%> 
            </div>

